Car.prototype ={
    //往原型上放三个属性
    heignt : 1400,
    lang :4900,
    carName : 'BMW'
}

function Car (color,owner){
    //这三行代码没有必要每次都执行
    // this.heignt = 1400
    // this.lang = 4900
    // this.carName = 'BMW'
    this.color = color
    this.owner = owner
}

var car1 =new Car('pink','laisf')
var car2 =new Car('green','xqm')

console.log(car)
console.log(car2.name)